From: Robert Lipe Date: Mon, 3 Dec 2018 04:35:22 +0000 (-0600) Subject: Diff and Terrain in geocaches are integers internally. X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~8^2~51^2~24 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=403b4383b29454876bccbab306aaefa67444d0c2;p=gpsbabel.git Diff and Terrain in geocaches are integers internally. --- diff --git a/geo.cc b/geo.cc index a04d3bb1a..3a737e43e 100644 --- a/geo.cc +++ b/geo.cc @@ -74,9 +74,9 @@ static void GeoReadLoc() waypt_add_url(wpt, reader.readElementText(), a.value("text").toString()); } else if (current_tag == "/loc/waypoint/difficulty") { - wpt->gc_data->diff = reader.readElementText().toDouble() * 10; + wpt->gc_data->diff = reader.readElementText().toUInt() * 10; } else if (current_tag == "/loc/waypoint/terrain") { - wpt->gc_data->terr = reader.readElementText().toDouble() * 10; + wpt->gc_data->terr = reader.readElementText().toUInt() * 10; } else if (current_tag == "/loc/waypoint/container") { wpt->gc_data->container = wpt_container(reader.readElementText()); }